package com.sali.design_pattern.h_proxy_pattern.lesson_02;

import com.sali.b_design_pattern.h_proxy_pattern.lesson_02.Order5ServiceImpl;

/**
 * @description:
 * @date: 2023/3/19 21:28.
 * @version: 1.0
 */
public class Test {

    public static void main(String[] args) {
        // 目标对象
        com.sali.design_pattern.h_proxy_pattern.lesson_02.IOrder5Service order5Service = new Order5ServiceImpl();
        // 代理对象
        ProxyService proxyService = new ProxyService(order5Service);
        // 代理对象执行代理方法
        proxyService.buyTicket();
    }

}
